package nostalgia;

import java.util.Properties;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;

public class SystemConfiguration {
    private static SystemConfiguration instance;

    public static synchronized SystemConfiguration getInstsance() {
        if(instance == null) {
            instance = new SystemConfiguration();
        }
        return instance;
    }

    private SystemConfiguration() {
    }

    public File getUserDataDirectory() {
        File fctval = new File(System.getProperty("user.home"), ".nostalgiafm");
        if(!fctval.exists()) {
            fctval.mkdirs();
        }
        return fctval;
    }

    public String getLastfmApiKey() {
        return "ecfc27eef85dcaff6e8d33c0c688c1ec";
    }
}
